import request from '@/utils/request'

// 查询口圈列表
export function listTireRim(query) {
  return request({
    url: '/mes/bm/tireRim/list',
    method: 'get',
    params: query
  })
}

// 查询口圈详细
export function getTireRim(id) {
  return request({
    url: '/mes/bm/tireRim/' + id,
    method: 'get'
  })
}

// 新增口圈
export function addTireRim(data) {
  return request({
    url: '/mes/bm/tireRim',
    method: 'post',
    data: data
  })
}

// 修改口圈
export function updateTireRim(data) {
  return request({
    url: '/mes/bm/tireRim',
    method: 'put',
    data: data
  })
}

// 删除口圈
export function delTireRim(id) {
  return request({
    url: '/mes/bm/tireRim/' + id,
    method: 'delete'
  })
}
